package com.codechen.scaffold.books.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.codechen.scaffold.books.domain.entity.Book;
import com.codechen.scaffold.books.domain.req.BookQueryRequest;
import com.codechen.scaffold.books.mapper.BookMapper;
import com.codechen.scaffold.books.service.IBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BookServiceImpl extends ServiceImpl<BookMapper, Book> implements IBookService {

    @Autowired
    private BookMapper bookMapper;

    @Override
    public IPage<Book> queryList(Page<Book> bookPage, BookQueryRequest bookQueryRequest){
        return bookMapper.queryList(bookPage, bookQueryRequest);
    }
}
